(global.webpackJsonp = global.webpackJsonp || []).push([
    ["pages/index/index"], {
        "6f63": function(e, i, t) {
            (function(e) {
                Object.defineProperty(i, "__esModule", {
                    value: !0
                }), i.default = void 0;
                var n = {
                    mixins: [t("ebe2").checkLogin],
                    components: {
                        subscribeBar: function() {
                            t.e("components/subscribeBar/subscribeBar").then(function() {
                                return resolve(t("825b"));
                            }.bind(null, t)).catch(t.oe);
                        },
                        indexTip: function() {
                            t.e("components/indexTip/indexTip").then(function() {
                                return resolve(t("ac22"));
                            }.bind(null, t)).catch(t.oe);
                        },
                        wybPopup: function() {
                            t.e("components/wyb-popup/wyb-popup").then(function() {
                                return resolve(t("1306"));
                            }.bind(null, t)).catch(t.oe);
                        }
                    },
                    data: function() {
                        return {
                            platformPhone: "ios",
                            url: "/assets/img/banner.png",
                            leftTop: 0,
                            tipHeight: 0,
                            myhandleCount: 0,
                            delayShow: !1,
                            banner: "/assets/img/banner.png",
                            newsList: [],
                            menuList: [],
                            menuList1: [],
                            menuList2: [],
                            menuList3: [],
                            site: {},
                            hongbaoList: [],
                            hongbaoShow: !1,
                            hongbaoShow1: !1,
                            hongbaoShow2: !1,
                            showMpqrcode: !1,
                            hongbaoId: "",
                            newren_hb_url: "/static/image/image_fuli/redbag.png",
                            menuList2: [],
                            bannerList: [],
                            bottomList: [],
                            showSubscrilbe: !1,
                            index_adver_url: "/assets/img/indexAdver.png",
                            indexAdverShow: !1,
                            showTips: !0,
                            expressLogoList: ["../../static/image/index/zt.png", "../../static/image/index/yt.png", "../../static/image/index/db.png", "../../static/image/index/jd.png", "../../static/image/index/jt.png", "../../static/image/index/sf.png", "../../static/image/index/st.png", "../../static/image/index/yd.png"],
                            wh_text: "",
                            wh_title: "",
                            content_list: []
                        };
                    },
                    watch: {
                        configindex: function(i) {
                            e.setNavigationBarTitle({
                                title: i.index_title
                            });
                        }
                    },
                    onBackPress: function() {
                        if (this.hongbaoShow) return this.hongbaoShow = !1, !0;
                    },
                    onShareAppMessage: function(e) {
                        return {
                            title: "快递寄件折扣平台 运费低至4元起",
                            imageUrl: this.$db.get("site").fxi,
                            path: "/pages/index/index?user_id=".concat(this.$db.get("userId"))
                        };
                    },
                    methods: {
                        _showmpqrcode: function(e) {
                            console.log('e---->', e);
                            this.$refs.popup_mpcode.show();
                            this.showMpqrcode = 1;
                        },
                        hidemppopup: function() {
                            this.$refs.popup_mpcode.hide();
                            this.showMpqrcode = 0;
                        },

                        judgePlatForm: function() {
                            var i = e.getSystemInfoSync().platform;
                            this.platformPhone = i;
                        },
                        touchmove: function(e, i) {
                            var t = (e.touches[0] || e.changedTouches[0]).pageY;
                            this.leftTop = t;
                        },
                        top_jump: function(t) {
                            var site = this.$db.get("site");
                            var s = site ? site : this.site;
                            if (1 == t) {
                                if (!this.$db.get("userToken")) return void this.checkIsLogin();
                                e.navigateTo({
                                    url: "/pages/delivery/delivery?type=1"
                                });
                            }
                            if (3 == t) {
                                if (!this.$db.get("userToken")) return void this.checkIsLogin();
                                e.navigateTo({
                                    url: "/pages/delivery/delivery?type=3"
                                });
                            }
                            7 == t && e.navigateTo({
                                url: "/pages/member/refund/refund"
                            });
                            6 == t && e.navigateTo({
                                url: "/pages/guide/guide"
                            });
                            2 == t && e.navigateTo({
                                url: "/pages/member/freight/freight"
                            });
                            var url = '/subpages/pages/mailing-consult/mailing-consult';
                            8 == t && e.navigateTo({
                                url: url
                            });
                        },
                        to_detail: function(i) {
                            console.log(i), e.navigateTo({
                                url: i.url
                            });
                        },

                        to_detail2: function(i) {
                            var url = i.url;
                            var target = i.target;
                            console.log('i', i);
                            console.log('target', target);
                            console.log('url', url);
                            if (target == 0) {
                                e.navigateTo({
                                    url: url
                                })
                            } else {
                                console.log('url1', url);
                                wx.switchTab({
                                    url: url
                                });
                            }
                        },
                        to_next: function(e) {
                            console.log(e), -1 == e.indexOf("pages/find/index/index") && -1 == e.indexOf("pages/gift/index/index") || wx.switchTab({
                                url: e
                            }), this.$common.navigateTo(e);
                        },
                        myhandleCountFunc: function() {
                            var e = this;
                            this.$db.get("userToken") && this.$api.myhandleCountApi({}, function(i) {
                                "1" == i.code && (e.myhandleCount = i.data);
                            });
                        },
                        redbagload: function(e) {
                            this.delayShow = !0;
                        },
                        hideNewyearNotice: function() {
                            this.$refs.popup.hide();
                        },
                        hideNewyearNotice1: function() {
                            this.$refs.popup_wh.hide(), this.hongbaoShow1 = !1;
                        },
                        hideNewyearNotice2: function() {
                            this.$refs.popup_wh1.hide(), this.hongbaoShow2 = !1;
                        },
                        showWhPop: function() {
                            var i = this;
                            this.$api.defendpop({}, function(t) {
                                i.site = t.data.site, i.$db.set("site", t.data.site), i.$db.set("config", t.data.config), i.$db.set("integral", t.data.integral),
                                    i.$db.set("wxapp", t.data.wxapp), i.doPub(), "1" == t.data.status && (e.hideTabBar(),
                                        i.wh_text = "　　" + t.data.content, i.wh_title = t.data.title, i.$refs.popup_wh.show(),
                                        i.hongbaoShow1 = !0);
                            });
                        },
                        showWhPop1: function() {
                            var e = this;
                            this.$api.defendpop1({}, function(i) {
                                "1" == i.data.status && (e.wh_text = "" + i.data.content, e.wh_title = i.data.title,
                                    e.$refs.popup_wh1.show(), e.hongbaoShow2 = !0);
                            });
                        },
                        doPub: function() {
                            var e = this.site ? this.site : this.$db.get("site"),
                                i = this.$db.get("userId");
                            0 != e.juke1 ? (this.bottomList = [{
                                url: "plugin://menpiao-plugin/home?pub_id=" + e.jutuike_pub_id + "&sid=" + i,
                                is_tabbar: !1,
                                icon: "/static/image/juke-1.png",
                                text_top: "周边游",
                                text_bot: "景点门票特惠"
                            }, {
                                url: "plugin://bdshPlugin/index?pub_id=" + e.jutuike_pub_id + "&channel=" + i,
                                is_tabbar: !1,
                                icon: "/static/image/juke-2.png",
                                text_top: "周边优惠",
                                text_bot: "同城折扣福利"
                            }, {
                                url: "plugin://jtkDc/index?pub_id=" + e.jutuike_pub_id + "&channel=" + i,
                                is_tabbar: !1,
                                icon: "/static/image/juke-4.png",
                                text_top: "大牌点餐",
                                text_bot: "在线点单5折起"
                            }, {
                                url: "plugin-private://wx89752980e795bfde/pages/index/index?pub_id=" + e.jutuike_pub_id + "&channel=" + i,
                                is_tabbar: !1,
                                icon: "/static/image/juke-3.png",
                                text_top: "特价电影票",
                                text_bot: "折扣影票6折起"
                            }]) : this.bottomList = [];
                        },
                        jumpbanner: function(e) {
                            var i = e.link_url;
                            this.$common.navigateTo(i);
                        },
                        skipPage: function(t) {
                            console.log('t', t);
                            var i = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
                                n = this;
                            if (t) {
                                if (!this.$db.get("userToken")) return void this.checkIsLogin();
                                this.$common.navigateTo(t);
                            }
                        },
                        checkhongbao: function() {
                            var e = this;
                            if (this.$db.get("userInfo").id) {
                                var i = this.$db.get("userInfo").id ? this.$db.get("userInfo").id : "";
                                this.$api.checkIndexHongbaoApi({
                                    user_id: i
                                }, function(i) {
                                    e.hongbaoList = i.data || [], 0 != i.code ? ("index_9937" == i.code ? (e.$store.state.is_nocommission,
                                            e.newren_hb_url = "/static/image/image_fuli/redbag.png") : e.newren_hb_url = "/static/image/image_fuli/redbag.png",
                                        i.data ? e.hongbaoShow = !0 : e.hongbaoShow = !1) : e.$common.errorToShow(i.msg);
                                });
                            }
                        },
                        gethongbao: function() {
                            var i = this;
                            console.log("t.data", i);
                            var t = i.hongbaoList.coupon_id;
                            this.$api.getCouponApi({
                                id: t
                            }, function(t) {
                                "0" != t.code ? (i.hongbaoShow = !1, "noTip_9937" == t.code ? e.reLaunch({
                                    url: "/subpages/pages/official-account/official-account"
                                }) : "needLowx" == t.code ? i.$common.errorToShow(t.msg, function(e) {
                                    location.href = "weixin://dl/business/?t=TZ0kcghdbAe";
                                }) : i.$common.successToShow(t.msg)) : i.$common.errorToShow(t.msg);
                            });
                        },
                        closehongbao: function() {
                            this.hongbaoShow = !1;
                        },
                        bannerApi: function() {
                            var i = this;
                            this.$api.bannerApi({}, function(t) {
                                e.stopPullDownRefresh(),
                                    i.bannerList = t.data.ad || [];
                                i.content_list = t.data.navigation || [];
                            });
                        },
                        navigationApi: function() {
                            var t = this;
                            this.$api.navigationApi2({}, function(i) {
                                e.stopPullDownRefresh(), t.menuList = i.data.menuList || [], t.menuList1 = i.data.menuList1 || [], t.menuList2 = i.data.menuList2 || [], t.menuList3 = i.data.menuList3 || [];
                            });
                        },
                        newsListApi: function() {
                            var e = this;
                            this.is_nocommission ? this.$api.newsListApi({}, function(i) {
                                e.newsList = i.data || [];
                            }) : this.$api.comrollApi(function(i) {
                                e.newsList = i.data || [];
                            });
                        },
                        onPullDownRefresh: function() {
                            this.bannerApi(), this.navigationApi(), this.newsListApi(), this.myhandleCountFunc();
                        },
                        showSubscrilbes: function() {
                            if (this.showSubscrilbe = !1, this.$store.state.is_nocommission) return !1;
                            if (this.$db.get("userToken") && "1" != this.$db.get("userInfo").subscribe_status) {
                                var e = this.$db.get("close-subscribe-date");
                                if (e) {
                                    var i = new Date(),
                                        t = i.getFullYear() + "-" + (i.getMonth() + 1) + "-" + i.getDate();
                                    "" != this.difference(e, t) && (this.showSubscrilbe = !0);
                                } else this.showSubscrilbe = !0;
                            }
                        },
                        difference: function(e, i) {
                            var t = new Date(e),
                                n = new Date(i).getTime() - t.getTime();
                            return Math.floor(n / 864e5) || "";
                        },
                        showIndexAdvers: function() {
                            this.indexAdverShow = !1;
                            var e = this.$db.get("close-index-adver-date");
                            if (e) {
                                var i = new Date(),
                                    t = i.getFullYear() + "-" + (i.getMonth() + 1) + "-" + i.getDate();
                                "" != this.difference(e, t) && (this.indexAdverShow = !0);
                            } else this.indexAdverShow = !0;
                        },
                        clickAdver: function() {
                            e.navigateTo({
                                url: "/pages/member/banner/hb_detail"
                            });
                            var i = new Date(),
                                t = i.getFullYear() + "-" + (i.getMonth() + 1) + "-" + i.getDate();
                            this.$db.set("close-index-adver-date", t), this.indexAdverShow = !1;
                        },
                        closeAdver: function() {
                            var e = new Date(),
                                i = e.getFullYear() + "-" + (e.getMonth() + 1) + "-" + e.getDate();
                            this.$db.set("close-index-adver-date", i), this.indexAdverShow = !1;
                        }
                    },
                    onLoad: function(i) {
                        this.configindex && e.setNavigationBarTitle({
                            title: this.configindex.index_title
                        }), this.judgePlatForm();
                        var t = e.getMenuButtonBoundingClientRect();
                        console.log("menuButtonInfo", t), this.tipHeight = Number(t.bottom) - Number(t.height / 2) - 10;
                    },

                    onShareTimeline: function(e) {
                        var uid = this.$db.get("userId");
                        console.log("pages/index/index?promoteId", 'pages/index/index?promoteId=' + uid);
                        console.log('this.configindex', this.configindex);
                        return {
                            title: this.configindex.index_share_title,
                            imageUrl: this.configindex.index_share,
                            query: 'promoteId=' + uid,
                        }
                    },


                    onReady: function() {
                        this.showjtk ? this.$refs.popup.show() : this.checkhongbao(), this.showWhPop(),
                            this.showWhPop1();
                    },
                    onShow: function() {
                        var e = this;
                        this.bannerApi(), this.navigationApi(), this.newsListApi(), this.myhandleCountFunc(),
                            this.showSubscrilbes(), !!this.$db.get("userToken") && this.$api.getUserInfoApi({
                                user_id: this.$db.get("userId")
                            }, function(i) {
                                if ("1" == i.code) {
                                    var t = i.data;
                                    e.$db.set("userInfo", t);
                                } else e.$common.errorToShow(i.msg);
                            }), null != this.$store.state.configindex && this.configindexFunc();
                    }
                };
                i.default = n;
            }).call(this, t("543d").default);
        },
        "79f8": function(e, i, t) {
            t.d(i, "b", function() {
                return o;
            }), t.d(i, "c", function() {
                return a;
            }), t.d(i, "a", function() {
                return n;
            });
            var n = {
                    wybPopup: function() {
                        return t.e("components/wyb-popup/wyb-popup").then(t.bind(null, "1306"));
                    }
                },
                o = function() {
                    this.$createElement, this._self._c;
                },
                a = [];
        },
        "8a7c": function(e, i, t) {
            t.r(i);
            var n = t("6f63"),
                o = t.n(n);
            for (var a in n) "default" !== a && function(e) {
                t.d(i, e, function() {
                    return n[e];
                });
            }(a);
            i.default = o.a;
        },
        "98d1": function(e, i, t) {
            t.r(i);
            var n = t("79f8"),
                o = t("8a7c");
            for (var a in o) "default" !== a && function(e) {
                t.d(i, e, function() {
                    return o[e];
                });
            }(a);
            t("a930");
            var s = t("f0c5"),
                c = Object(s.a)(o.default, n.b, n.c, !1, null, "28b73fce", null, !1, n.a, void 0);
            i.default = c.exports;
        },
        a930: function(e, i, t) {
            var n = t("bc1a");
            t.n(n).a;
        },
        bc1a: function(e, i, t) {},
        faa8: function(e, i, t) {
            (function(e) {
                t("98af"), n(t("66fd"));
                var i = n(t("98d1"));

                function n(e) {
                    return e && e.__esModule ? e : {
                        default: e
                    };
                }
                wx.__webpack_require_UNI_MP_PLUGIN__ = t, e(i.default);
            }).call(this, t("543d").createPage);
        }
    },
    [
        ["faa8", "common/runtime", "common/vendor"]
    ]
]);